export const columns = ctx => {
  return [
    {
      width: 80,
      render: (h, row) => {
        return [
          <el-radio
            value={ctx.radio}
            onInput={(val) => { ctx.radio = val }}
            label={row.id}
            class="ml5"
            onChange={() => { ctx.handleChange(row) }}
          ><span class="dn"></span></el-radio>
        ]
      }
    },
    {
      prop: 'id',
      label: '方案ID'
    },
    {
      prop: 'name',
      label: '特殊节假日方案规则'
    },
    {
      prop: 'exchangeRangeName',
      label: '兑换范围'
    },
    {
      prop: 'updateTime',
      label: '修改时间'
    },
    {
      label: '操作',
      render: (h, row) => {
        return [
          <el-link
            underline={false}
            type="primary"
            class="mr10"
            onClick={() => { ctx.checkDetail(row) }}
          >
            详情
          </el-link>
        ]
      }
    }
  ]
}
